package org.goodprinciples.oracolo.model;

import java.util.Objects;
import java.util.Set;

/**
 *
 * @author Francesco Conte
 */
public class Application extends OracoloBean<Application> {
   
    private Long id = null;
    private String name = null;
    private String description = null;
    private Set<SupportedLanguage> supportedLanguages = null;
    
    public Application() {}

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<SupportedLanguage> getSupportedLanguages() {
        return supportedLanguages;
    }

    public void setSupportedLanguages(Set<SupportedLanguage> supportedLanguages) {
        this.supportedLanguages = supportedLanguages;
    }

    public boolean equals(java.lang.Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Application other = (Application) obj;
        if (!Objects.equals(this.id, other.id)) {
            return false;
        }
        return true;
    }

    public int hashCode() {
        int hash = 5;
        hash = 11 * hash + Objects.hashCode(this.id);
        return hash;
    }

    public String toString() {
        return "Application{" + "id=" + id + ", name=" + name + ", description=" + description + ", supportedLanguages=" + supportedLanguages + '}';
    }
    
}
